from exlib.interface import ExlibInterface


class CustomExlibInterface(ExlibInterface):
    def __init__(self):
        from utils.response import SkvTable, SkvSucResponse, ListResponse
        from utils.casbin import CasbinRule
        from app import api_base as api_plus
        self.TIME_ZONE_FOR_SERIALIZER = "BEIJING"
        self.table_cls = SkvTable
        self.current_api = api_plus
        self.list_response_cls = ListResponse
        self.response_cls = SkvSucResponse
        self.casbin_rule_cls = CasbinRule


REST_PLUS_CONFIG = CustomExlibInterface()
